package designpattern.create.single;

/**
 * Created by cuihao on 2017/10/23.
 * 饿汉 线程不安全 耗费资源 初始化时就加载
 */

public class HungrySingleton {
    private static final HungrySingleton instance = new HungrySingleton();

    private HungrySingleton() {
    }

    public static HungrySingleton getInstance() {
        return instance;
    }

}
